
<%@page import="com.printeverywhere.dto.Items"%><%@ taglib prefix="s"
	uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<s:set name="lang" var="lang" value="'application'" />

<s:if test="%{#session.WW_TRANS_I18N_LOCALE != null}">
	<s:set var="lang"
		value="'application_' + #session.WW_TRANS_I18N_LOCALE" />
</s:if>
<s:i18n name="application">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="23%" valign="top">
				<div style="margin:0px 0px 16px 0px">
					<div style="margin:0px 0px 0px 0px">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
				  			<tr>
							    <td width="9" class="grey-header-bg-left">&nbsp;</td>
							    <td align="left" class="grey-header-bg"><div class="white-header-text"><s:text name="UserShop.para1" /></div></td>
							     <td width="9" class="grey-header-bg-right"></td>
				  			</tr>
						</table>
					</div>
					<div style="margin:0px 5px 0px 5px">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
	    					<tr>
	        					<td rowspan="2" valign="top"><div style="margin:10px 0px 0px 0px">
								<s:iterator value="categoryList">
									<table width="100%"><tr>
										<td>
											<span class="common-text">
												<s:property value="%{categoryName}" />
											</span>
										</td>
									</tr></table>
									<div class="categories-separator-bg" style="margin:7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</s:iterator>
								</div>
								</td>
								<td width="11" valign="top" class="left-bg">
	            					<div style="margin:0px 0px 0px 0px" class="left-top-bg"></div>
	            				</td>
							</tr>
	        				<tr>
	        					<td valign="bottom" class="left-bg">
	        	 					<div style="margin:0px 0px 0px 0px" class="left-bottom-bg"></div>
	        					</td>
							</tr>
						</table>
					</div>
				</div>
			</td>
			<td width="3%">
				&nbsp;
			</td>
			<td width="74%" valign="top">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td>
							<table width="100%" border="0" cellpadding="0" cellspacing="0">

								<tr>
									<td>
										<div class="blue-text16" style="margin: 0px 0px 0px 0px">
											<s:iterator value="shopSettings">
												<s:if test="%{user.id == id}">
													<s:property value="%{title}" />
												</s:if>
											</s:iterator>
										</div>
									</td>
									<td valign="top" align="right">
										<div class="welcome-text" style="margin: 0px 0px 0px 0px">
											<s:text name="UserShop.para2" />
											<span class="visitor-text"><s:property
													value="%{shopSettings.user.userId}" /> </span>,
										</div>
									</td>
								</tr>
							</table>
							<div class="header-separator-bg"
											style="margin: 10px 5px 17px 0px"></div>
						</td>
					</tr>
					<tr>
						<td>
							<div style="margin: 0px 0px 10px 0px">
								<table width="100%" border="0" cellpadding="5" cellspacing="0">
									<tr>
										<td>
											<s:set name="imgUrl" var="imgUrl"
												value="'servlet/ImageServlet?dto=ShopSettings&id='" />
											<img class="product-border"
												src="<s:property value="%{#imgUrl + shopSettings.user.id}" />" />
										</td>
									</tr>
									<tr>
										<td align="left" valign="top" class="common-text">
											<s:iterator value="shopSettings">
												<s:if test="%{user.id == id}">
													<s:property value="%{description }" />
												</s:if>
											</s:iterator>
										</td>
									</tr>
								</table>
							</div>
							<div style="margin: 0px 0px 22px 0px">


								<display:table name="itemsList" pagesize="5" cellpadding="6"
									cellspacing="1" requestURI="userShop.htm" id="row"
									class="verdana12blacknormal" style="width: 100%">

									<display:column title="Photo" headerClass="grid-header-bg"
										class="grid-bg common-text">
									<%if(((Items) pageContext.getAttribute("row")).getImage() != null) { %>
										<img class="product-border"
											src="servlet/ImageServlet?dto=Items&id=<%=((Items) pageContext
												.getAttribute("row"))
												.getItemId()%>" />
									<% } else { %>
										<img class="product-border" src="images/no_image.gif" />
									<% } %>
									</display:column>
									<display:column title="Title" headerClass="grid-header-bg" autolink="true" url="/showItem.htm" paramId="cid" paramProperty="itemId"
										class="grid-bg common-text" property="title">
									</display:column>
									<display:column title="Quantity" headerClass="grid-header-bg"
										class="grid-bg common-text" property="quantity">
									</display:column>
									<display:column title="Shipping cost"
										headerClass="grid-header-bg" class="grid-bg common-text"
										property="shipPayment">
									</display:column>
									<display:column title="Price" headerClass="grid-header-bg"
										class="grid-bg common-text" property="buyPrice">
									</display:column>
									<display:column title="Time left" headerClass="grid-header-bg"
										class="grid-bg common-text" property="endTime">
									</display:column>
								</display:table>
							</div>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</s:i18n>
